﻿
//using UnityEngine.Purchasing;

public class Request_UploadPhoto : RequestBase
{

    public const string Key = "UploadPhoto";

    public UploadPhotoRequestData uploadPhotosRequestData = new UploadPhotoRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return uploadPhotosRequestData;
        }
    }

    public Request_UploadPhoto() : base()
    {
        MessagePacket.key = Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"发送 Upload Photos 请求");
    }

    public override ResponseData NewResponseData() => new ImageUrlResponseData();

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_UploadPhoto();
    //}
}

//public class Response_UploadPhoto : ResponseBase
//{
//    public override ResponseData NewResponseData() => new ImageUrlResponseData();

//    public override void Excuate()
//    {
//        var request = this.request as Request_UploadPhoto;

//        if (request.onResponse != null)
//            request.onResponse(this);
//    }

//}
